import {JSEncrypt} from './jsencrypt/bin/jsencrypt.js'
// import Encrypt from 'encryptlong'

const rsaEncrypt = (publicKey, str) => {
	console.log(publicKey, str)
	const jse = new JSEncrypt();
	//设置公钥
	jse.setPublicKey(publicKey);
	return jse.encrypt(str);
}

export default rsaEncrypt;
